//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Pete Davidson','The Senate at Tin Roof','Columbia, SC','Thursday','5/2/2024','7:00 PM','6385160','Pete-Davidson-5-2-2024'],['Gavin DeGraw','The Senate at Tin Roof','Columbia, SC','Friday','5/3/2024','8:00 PM','6261878','Gavin-DeGraw-5-3-2024'],['High On Fire','The Senate at Tin Roof','Columbia, SC','Sunday','5/5/2024','7:00 PM','6330170','High-On-Fire-5-5-2024'],['Clutch','The Senate at Tin Roof','Columbia, SC','Friday','5/10/2024','8:00 PM','6207817','Clutch-5-10-2024'],['The Ghost Inside','The Senate at Tin Roof','Columbia, SC','Saturday','5/11/2024','7:00 PM','6250054','The-Ghost-Inside-5-11-2024'],['August Burns Red','The Senate at Tin Roof','Columbia, SC','Monday','5/13/2024','7:30 PM','6285830','August-Burns-Red-5-13-2024'],['The Last Match','The Senate at Tin Roof','Columbia, SC','Friday','5/17/2024','8:00 PM','6285849','The-Last-Match-5-17-2024'],['Nashville Nights','The Senate at Tin Roof','Columbia, SC','Saturday','6/8/2024','8:00 PM','6409934','Nashville-Nights-6-8-2024'],['GWAR','The Senate at Tin Roof','Columbia, SC','Tuesday','6/11/2024','7:00 PM','6387218','GWAR-6-11-2024'],['Juvenile','The Senate at Tin Roof','Columbia, SC','Tuesday','8/13/2024','8:00 PM','6360869','Juvenile-8-13-2024'],['The Wallflowers','The Senate at Tin Roof','Columbia, SC','Monday','9/16/2024','8:00 PM','6357772','The-Wallflowers-9-16-2024'],['Briston Maroney','The Senate at Tin Roof','Columbia, SC','Monday','9/23/2024','7:30 PM','6414986','Briston-Maroney-9-23-2024'],['The Old 97's','The Senate at Tin Roof','Columbia, SC','Friday','9/27/2024','7:30 PM','6343230','The-Old-97-s-9-27-2024'],['Morbid Angel','The Senate at Tin Roof','Columbia, SC','Friday','12/13/2024','6:00 PM','6416145','Morbid-Angel-12-13-2024'],['ColaJazz Festival','The Senate at Tin Roof','Columbia, SC','Friday','4/4/2070','TBD','4382799','ColaJazz-Festival-4-4-2070'],['Manchester Orchestra','The Senate at Tin Roof','Columbia, SC','Wednesday','4/23/2070','TBD','4406779','Manchester-Orchestra-4-23-2070']],'Tin Roof Columbia','http://www.ticketnetwork.com/ticket/Tin-Roof-Columbia-events.aspx');